/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package scheduler.view.dialogs;

import java.net.URL;
import java.util.ResourceBundle;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.TextArea;
import javafx.stage.Stage;

/**
 * FXML Controller class
 *
 * @author Dima
 */
public class ErrorDialogController implements Initializable {
    @FXML
    private Button okButton;
    @FXML
    private TextArea message;
    /**
     * Initializes the controller class.
     */
    @Override
    public void initialize(URL url, ResourceBundle rb) {
        // TODO
    } 
    
    @FXML
    private void onAction(ActionEvent event) {
        ((Stage)okButton.getScene().getWindow()).close();
    }
    
    public void setMessage(String messageText) {
        message.setText(messageText);
    }
}
